/*
 *  istream.h
 *  FrostOS
 *
 *  Created by Alex on 12/4/09.
 *  Copyright 2009 HVS (Hacking vs. Security) and © bluechill. All rights reserved.
 *
 */

#ifndef ISTREAM_H
#define ISTREAM_H

#include <Video.h>
#include <ostream.h>

namespace std {
	//---------------IStream:------------------------
	
	class IStream
	{
	public:
		bool gotKey;
		char key;
		IStream& operator>>(char *cp);
		IStream& operator>>(string& cp);
		void getKey(char keyEntered);
	private:
	};
	
	class PasswordStream
	{
	public:
		PasswordStream& operator>>(char *cp);
	private:
	};
	
	extern IStream cin; // standard cin displays keys and then adds them to a string untill \n (return/enter)
	extern PasswordStream password_cin; // cin except doesn't display keys
}

#endif